//
//  YLSignFailedViewController.m
//  TheTenthAnniversaryOfMobileUnion
//
//  Created by kuangbiao on 2019/1/24.
//  Copyright © 2019 kuangbiao. All rights reserved.
//

#import "YLSignFailedViewController.h"
#import "YLManualCheckinViewController.h"

@interface YLSignFailedViewController ()
@property (weak, nonatomic) IBOutlet UIButton *AgainIdentifyBtn;
@property (weak, nonatomic) IBOutlet UIButton *ArtificialSignBtn;
@property (weak, nonatomic) IBOutlet UILabel *msgLabel;

@end

@implementation YLSignFailedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];
}
- (void)createLeftBarItem{
    UIButton *leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [leftBtn setImage:[UIImage imageNamed:@"arrows black"] forState:UIControlStateNormal];
    [leftBtn setImageEdgeInsets:UIEdgeInsetsMake(0, -10, 0, 0)];
    [leftBtn addTarget:self action:@selector(againIdentifyBtnClickAction:) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:leftBtn];
}

- (void)initView{
    self.AgainIdentifyBtn.layer.cornerRadius = 30;
    self.ArtificialSignBtn.layer.cornerRadius = 30;
//    self.msgLabel.text = self.errorMsg?:@"";
//    [self createLeftBarItem];
}

- (IBAction)againIdentifyBtnClickAction:(id)sender {
//    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:([self.navigationController.viewControllers count] - 3)] animated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)artificialSignBtnClickAction:(id)sender {
    YLManualCheckinViewController *manualVC = [[YLManualCheckinViewController alloc] initWithNibName:@"YLManualCheckinViewController" bundle:nil];
    [self.navigationController pushViewController:manualVC animated:YES];
}

@end
